package com.xxx.blog.base.service.impl;

import com.xxx.blog.base.dao.SysUserMapper;
import com.xxx.blog.base.domain.SysUser;
import com.xxx.blog.base.domain.SysUserToken;
import com.xxx.blog.base.service.ShiroService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

/*******************************************************************************
 * Project: blog-base
 * Package: com.xxx.blog.base.service.impl
 * Type:    ShiroServiceImpl
 * Author:  ChenXuefei
 * Date:    2017/12/12 11:27
 *
 * Copyright (c) 2017 AFCATSTAR. All Rights Reserved.
 *******************************************************************************/
@Service("shiroService")
public class ShiroServiceImpl implements ShiroService {
    
    @Autowired
    private SysUserMapper sysUserMapper;
    
    @Override
    public Set<String> getUserPermissions(Long userId) {
        
        Set<String> list = sysUserMapper.queryAllPerms();
        return list;
    }
    
    @Override
    public SysUserToken queryByToken(String accessToken) {
        return null;
    }
    
    @Override
    public SysUser queryUser(Long userId) {
        return null;
    }
}
